<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>易夫森管理系统</title>
		<link rel="stylesheet" type="text/css" href="css/yfs.css">
	</head>

	<body>
		<table width="900" align="center" height="100%" border="0" margin="0"
			padding="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" width="100%" height="30" colspan="6">
					<img src="images/logo.jpg">
				</td>
			</tr>
			<tr valign="top">
				<td width="2px" bgcolor="#add2da">
					&nbsp;
				</td>
				<td align="left" width="30px">
					<jsp:include page="left.jsp"></jsp:include>
				</td>
				<td width="2px" bgcolor="#add2da">
					&nbsp;
				</td>
				<td valign="top" width="750">
					<form action="<%=path%>/testRegexServlet" method="post">
						<table>
							<tr>
								<td>
									<label for="url">
										测试url
									</label>
								</td>
								<td>
									<input type="text" name="url" id="url" />
								</td>
							</tr>
							<tr>
								<td>
									<label for="regex">
										测试正则
									</label>
								</td>
								<td>
									<input type="text" name="regex" id="regex" />
								</td>
							</tr>
							<tr>
								<td>
									<label for="type">
										分组
									</label>
								</td>
								<td>
									<input type="text" name="type" id="type" />
								</td>
							</tr>
							<tr>
								<td>
									<label for="type">
										编码方式
									</label>
								</td>
								<td>
									<input type="text" name="type" id="encode" />
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<input type="submit" value="测试" />
								</td>
							</tr>
						</table>
						<hr />
					</form>
					<h3>
						配置例子
					</h3>
					<table>
						<tr>
							<td>
								测试url
							</td>
							<td>
								http://forum.book.sina.com.cn/thread-4407720-1-1.html
							</td>
						</tr>
						<tr>
							<td>
								测试正则
							</td>
							<td>
								&lt;div class="cont f14"
								id="postmessage_\d{3,15}"&gt;(.*?)&lt;/div&gt;
							</td>
						</tr>
						<tr>
							<td>
								分组
							</td>
							<td>
								0
							</td>
						</tr>
					</table>
					<h3>
						测试配置注意事项
					</h3>
					1.bbs解析配置时，采用分组为1的方式；
					<br />
					2.抓取前缀采用分组为1的方式；
					<br />
					3.url配置采用分组为0或者1的方式都可以；
					<br />
				</td>
				<td width="2px" bgcolor="#add2da">
					&nbsp;
				</td>
			</tr>
		</table>
	</body>
</html>
